package com.tcat.item.pojo;


import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@ApiModel(description = "分类")
@Table(name="tb_category")
@Data
public class Category {
    @Id
    @KeySql(useGeneratedKeys=true)
    private Long id;
    private String name;
    @Column(name="parent_id")
    private Long parentId;
    @Column(name="is_parent")
    private Boolean isParent;
    private Integer sort;


}
